package com.example.spring_blog.pojo.request;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDateTime;

@Data
public class UserRegisterRequest {
    @NotNull(message = "用户名不能为空")
    @NotBlank(message = "用户名不能为空字符")
    private String userName;
    @NotNull(message = "密码不能为空")
    @NotBlank(message = "密码不能为空字符")
    private String password;
    private String githubUrl;
    @NotNull(message = "头像不能为空")
    private MultipartFile avatarPath;
}
